function createINfo(){
  var arr1=['A','B','C','D']
  var arrinfo=[]
  arr1.forEach(item=>{
    let data={
      label:item+'区',
      value:item+'区',
      dicData:[]
    }
    for(var i=1;i<=20;i++){
      let obj={
        label:i+'号',
        value:i+'号',
      }
      data.dicData.push(obj)
    }
    arrinfo.push(data)
  })
  return arrinfo
}
export function optionInfo() {
  return {
    indexLabel: '序号',
    index: true,
    addBtn:true,
    align: 'centenr',
    delBtn: true,//行内删除按钮
    viewBtn:true,//查看按钮
    viewTitle:'详情',
    // rowKey:行数据的Key的主键，用于其他相关操作
    excelBtn: true,//导出excel
    // menuWidth:操作菜单栏的宽度
    labelWidth: 150,
    searchMenuPosition:'right',
    filterBtn:true,
    column: [
      {
        label: '车位编号',
        prop: 'parking_lot_number',
        // searchSpan:8,
        addDisplay: false,
        align: 'center',
        editDisabled: true,
        minWidth:130,
        searchSpan:8,
        search:true
      },
      {
        label: '车牌号',
        prop: 'plate_number',
        // searchSpan:8,
        addDisplay: false,
        align: 'center',
        editDisabled: true,
        minWidth:130,
        searchSpan:6,
        search:true
      },
      {
        label: '车位位置',
        prop: 'space_location',
        // searchSpan:8,
        addDisplay: true,
        align: 'center',
        editDisabled: true,
        minWidth:130,
        searchSpan:6,
        search:true,
        props: {
          label: 'label',
          value: 'value',
          children:'dicData'
        },
        type:'cascader',
        dicData:createINfo()
      },
      {
        label: '出售状态',
        prop: 'sell_status',
        // searchSpan:8,
        addDisplay: false,
        align: 'center',
        editDisabled: true,
        minWidth:130,
        searchSpan:6,
        search:true,
        type: 'select',
        props: {
          label: 'label',
          value: 'value'
        },
        dicData: [
          {
            label: '未出售',
            value: '0'
          },
          {
            label: '已出售',
            value: '1'
          },
          {
            label: '已出租',
            value: '2'
          },
        ],
      },
      {
        label: '出售类型',
        prop: 'sell_type',
        // searchSpan:8,
        addDisplay: false,
        align: 'center',
        editDisabled: true,
        minWidth:130,
        searchSpan:6,
        search:true,
        type: 'select',
        props: {
          label: 'label',
          value: 'value'
        },
        dicData: [
          {
            label: '出售',
            value: '1'
          },
          {
            label: '出租',
            value: '2'
          },
        ],
      },
      {
        label: '出售时间/天',
        prop: 'lease_time',
        // searchSpan:8,
        addDisplay: false,
        align: 'center',
        editDisabled: true,
        minWidth:130,
        searchSpan:8,
      },
      {
        label: '出售时间',
        prop: 'start_time',
        // searchSpan:8,
        addDisplay: false,
        align: 'center',
        editDisabled: true,
        minWidth:130,
        search:true,
        searchSpan:6,
        type: "date",
        format: "yyyy-MM-dd",
        valueFormat: "yyyy-MM-dd",
      },
      {
        label: '备注',
        prop: 'remarks',
        // searchSpan:8,
        addDisplay: false,
        align: 'center',
        editDisabled: true,
        minWidth:130,
        searchSpan:8,
      },
    ]
    
  }
}